How to Create a Scheduled PublishContents IntroductionQuite often, when a Publication Server is set up, there is a scheduled publish set up to publish the Prelive and Sandpit sites. Sometimes, however, it may be chosen to not have scheduled publications originally, but then you may want to set one up later. This article will go through the steps required to move through this process. Create the scheduled taskProcedure in Windows Server 2008
Typically, Prelive and Sandpit publications are scheduled to run daily, at or shortly after midnight. Live publications aren't usually scheduled, but can be if required. "C:\Program Files\Triaster\PublicationServer\PublicationWrapper". e.g. select 'schedule live.cmd', 'schedule prelive.cmd', or 'schedule sandpit.cmd'. Check the schedule CMD filesThe schedule CMD files are typically found in the PublicationWrapper folder, which is commonly in "C:\Program Files\Triaster\PublicationServer\PublicationWrapper". schedule.cmd schedule live.cmd schedule prelive.cmd schedule sandpit.cmd Schedule.cmdOpen schedule.cmd in Notepad. Note: If running Windows that has User Account Control, e.g. Windows Server 2008, then Notepad needs to run 'as administrator' so that files within 'Program Files', a restricted location, can be edited. It should look like this: set PublicationQueueFolder=C:\Program Files\Triaster\PublicationServer\PublicationWrapper\Queue set TaskName=%1 set TaskName=%TaskName:"=% set FullTaskName=%PublicationQueueFolder%\%TaskName%.pntask echo. > "%FullTaskName%"
Schedule <site name>.cmdOpen 'schedule Note: If running Windows that has User Account Control, e.g. Windows Server 2008, then Notepad needs to run 'as administrator' so that files within 'Program Files', a restricted location, can be edited. It should contain a single command, like this: "c:\program files\triaster\publicationserver\PublicationWrapper\schedule.cmd" PROCESSLIBRARY_LIVE >"c:\program files\triaster\publicationserver\PublicationWrapper\logs\Schedule live.log"
ValidationTo test a scheduled task:
This will prevent a publication from running, when we only want to check the initiation mechanism. Start > Administrative Tools > Task Scheduler. "C:\Program Files\Triaster\PublicationServer\PublicationWrapper\Queue" |